home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_004 / kermit / globals.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  3KB  |  79 lines

  1. /*    @(#)globals.h    1.1    1/26/85    */
  2.  
  3. /*
  4.  *    Global variables defined in "main.c"
  5.  */
  6.  
  7. #ifdef DEFINITIONS
  8. #  define GLOBAL(type,name,init) type name = init    /* Initialized */
  9. #  define GLOBALU(type,name,init) type name        /* Uninitialized */
  10. #else
  11. #  define GLOBAL(type,name,init) extern type name
  12. #  define GLOBALU(type,name,init) extern type name
  13. #endif
  14.  
  15. GLOBAL (char **, filelist, NULL);    /* List of files to be sent */
  16. GLOBAL (char *, filnam, NULL);        /* Current file name */
  17. GLOBAL (char *, photo, NULL);        /* Name of log file. */
  18. GLOBAL (char *, remtty, DEF_LINE);    /* Remote tty name */
  19. GLOBAL (char, eol, 0);            /* End-Of-Line character to send */
  20. GLOBAL (char, escchr, BRKCHR);        /* Connect command escape character */
  21. GLOBAL (char, padchar, 0);        /* Padding character to send */
  22. GLOBAL (char, quote, 0);        /* Quote chracter in incoming data */
  23. GLOBAL (char, state, 0);        /* Present state of the automaton */
  24. GLOBAL (int, mflg, 0);            /* Map upper to lower in filenames */
  25. GLOBAL (int, n, 0);            /* Message number */
  26. GLOBAL (int, pad, 0);            /* How much padding to send */
  27. GLOBAL (int, size, 0);            /* Size of present data */
  28. GLOBAL (int, spsiz, 0);            /* Maximum send packet size */
  29. GLOBAL (int, debug, 0);            /* -1 means debugging */
  30. GLOBAL (int, fd, 0);            /* File pointer to read/write */
  31. GLOBAL (int, host, 0);            /* TRUE if running on users machine */
  32. GLOBAL (int, iflg, 0);            /* Flag to ignore checksums in data */
  33. GLOBAL (int, numtry, 0);        /* Times this packet retried */ 
  34. GLOBAL (int, oldtry, 0);        /* Times previous packet tried */
  35. GLOBAL (int, remfd, 0);            /* File pointer of the host's tty */
  36. GLOBAL (int, speed, DEF_SPEED);        /* Remote line speed */
  37. GLOBAL (int, tflg, 0);            /* Trace progress on stdout */
  38. GLOBAL (int, cflg, 0);            /* Doing connect */
  39.  
  40. /*
  41.  *    Some compilers do not allow initialization of arrays with a single
  42.  *    initializer.
  43.  */
  44.  
  45. #ifdef AMIGA
  46. GLOBALU (char, packet[MAXPACK], 0);    /* Packet buffer */
  47. GLOBALU (char, recpkt[MAXPACK], 0);    /* Receive packet buffer */
  48. #else
  49. GLOBAL (char, packet[MAXPACK], 0);    /* Packet buffer */
  50. GLOBAL (char, recpkt[MAXPACK], 0);    /* Receive packet buffer */
  51. #endif    /* AMIGA */
  52.  
  53. /*
  54.  *    Internally defined kermit functions which are global.
  55.  */
  56.  
  57. extern VOID Connect ();
  58. extern VOID Help ();
  59. extern VOID HostRaw ();
  60. extern VOID NewSpeed ();
  61. extern VOID Receive ();
  62. extern VOID Send ();
  63. extern VOID Usage ();
  64. extern VOID WrapUp ();
  65. extern VOID exit ();
  66. extern char tolower ();
  67. extern VOID GetModes ();
  68. extern VOID HostCooked ();
  69. extern VOID SetSpeed ();
  70. extern VOID SetUp ();
  71. extern char rpack ();
  72. extern VOID spack ();
  73. extern int bufill ();
  74. extern VOID bufemp ();
  75. extern int getfil ();
  76. extern int gnxtfl ();
  77. extern VOID spar ();
  78. extern VOID rpar ();
  79.